import { createStore, combineReducers, applyMiddleware } from 'redux'
import tools from './reducers'
import { logger, func, promises } from './middleware'

const reducer = combineReducers({ tools })

const store = applyMiddleware(logger, func, promises)(createStore)(reducer)

export default store
